package com.lxyk.service.statistic;

import com.github.pagehelper.PageInfo;
import com.lxyk.domain.StuStatisticVO;

import java.util.Date;
import java.util.List;

//学生作业率
public interface StuTaskService {
    //查询班级某一天所有学生作业数据
    List<StuStatisticVO> findClassDayTask(Integer cid, Date date);

    //分页查询:班级某一天所有学生到作业率数据
    PageInfo<StuStatisticVO> findClassDayTask(Integer cid, Date recordDate,Integer pageNum,Integer pageSize);

    //条件分页查询
    PageInfo<StuStatisticVO> findByCondition(StuStatisticVO stuStatisticVO,Integer pageNum,Integer pageSize);

    //批量更新作业率(添加/修改)
    void save(Integer cid ,Date recordDate,List<StuStatisticVO> list);

    //根据班级id和日期查询学生信息
    PageInfo<StuStatisticVO> findStudentByCidAndDate(Integer cid, Date recordDate, Integer pageNum, Integer pageSize);

    //根据班级id获取最新到课率日期
    Date getLastDate(Integer cid);
}
